// pages/mine/mine.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
    // 订单状态:待支付、备货中、待收货、待评价、售后/退款.
    orderStatusActions: [
      {
        icon: "photo-o",
        status: "待支付",
        navigationUrl: "../detail/detail",
      },
      {
        icon: "orders-o",
        status: "待收货",
        navigationUrl: "../detail/detail",
      },
      {
        icon: "http://n.sinaimg.cn/photo/1_img/upload/cf3881ab/799/w1000h599/20200527/c317-iufmpmn0437916.jpg",
        status: "待评价",
        navigationUrl: "../detail/detail",
      },
      {
        icon: "http://n.sinaimg.cn/photo/1_img/upload/cf3881ab/799/w1000h599/20200527/c317-iufmpmn0437916.jpg",
        status: "售后/退款",
        navigationUrl: "../detail/detail",
      },
    ],
    services: [
      {
        name: "安心会员",
      },
      {
        name: "收货地址",
      },
      {
        name: "邀请有礼",
      },
      {
        name: "联系客服",
      },
      {
        name: "企业福利采购",
      },
      {
        name: "礼品卡",
      },
      {
        name: "意见反馈",
      },
      {
        name: "设置",
        navigationUrl: "../settings/settings"
      },
    ],
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {

  },

  /**
   * 生命周期函数--监听页面初次渲染完成
   */
  onReady: function () {

  },

  /**
   * 生命周期函数--监听页面显示
   */
  onShow: function () {

  },

  /**
   * 生命周期函数--监听页面隐藏
   */
  onHide: function () {

  },

  /**
   * 生命周期函数--监听页面卸载
   */
  onUnload: function () {

  },

  /**
   * 页面相关事件处理函数--监听用户下拉动作
   */
  onPullDownRefresh: function () {

  },

  /**
   * 页面上拉触底事件的处理函数
   */
  onReachBottom: function () {

  },

  /**
   * 用户点击右上角分享
   */
  onShareAppMessage: function () {

  },
  miniSetting: function () {
    wx.openSetting({
      success: res => {
        console.log("打开小程序设置成功:", res);
      },
    })
  }

})